﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:Microsoft_Samples="clr-namespace:Microsoft.Samples;assembly=Microsoft.Samples.Silverlight.Webcam" xmlns:Microsoft_Samples_ShaderEffects="clr-namespace:Microsoft.Samples.ShaderEffects;assembly=Microsoft.Samples.Silverlight.PixelShaderEffects" x:Class="WebcamPixelShaderSilverlight.MainPage"
    mc:Ignorable="d"
    d:DesignHeight="555" d:DesignWidth="716.5">

    <Grid x:Name="LayoutRoot" Background="White">
    	<Grid.RowDefinitions>
    		<RowDefinition Height="0.468*"/>
    		<RowDefinition Height="0.532*"/>
    	</Grid.RowDefinitions>

    	<Microsoft_Samples:Webcam x:Name="webcam" Margin="0,8,0,12" HorizontalAlignment="Center" Width="320"/>
    	<StackPanel Margin="0" Grid.Row="1" VerticalAlignment="Top" HorizontalAlignment="Center" Orientation="Horizontal">
    		<Rectangle Fill="{Binding VideoBrush, ElementName=webcam}" Height="120" Stroke="Black" Width="160"/>
    		<Rectangle Fill="{Binding VideoBrush, ElementName=webcam}" Height="120" Stroke="Black" Width="160">
    			<Rectangle.Effect>
    				<Microsoft_Samples_ShaderEffects:BandedSwirlEffect/>
    			</Rectangle.Effect>
    		</Rectangle>
    		<Rectangle Fill="{Binding VideoBrush, ElementName=webcam}" Height="120" Stroke="Black" Width="160">
    			<Rectangle.Effect>
    				<Microsoft_Samples_ShaderEffects:MonochromeEffect/>
    			</Rectangle.Effect>
    		</Rectangle>
    		<Rectangle Fill="{Binding VideoBrush, ElementName=webcam}" Height="120" Stroke="Black" Width="160">
    			<Rectangle.Effect>
    				<Microsoft_Samples_ShaderEffects:PixelateEffect HorizontalPixelCounts="10" VerticalPixelCounts="10"/>
    			</Rectangle.Effect>
    		</Rectangle>
    	</StackPanel>
        <Button
            Content="Button"
            Height="23"
            HorizontalAlignment="Left"
            Margin="619,30,0,0"
            Name="button1"
            VerticalAlignment="Top"
            Width="75"
            Click="button1_Click" />
    </Grid>
</UserControl>
